import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: HomeView,
    children:[
      {
        /*首页*/
        path:'/',
        component:()=>import('../views/abc/abcd/indexView')

      },
      {
        /*用户登录页面*/
        path: '/userLogin',
        component:()=>import('../views/abc/abcd/UserLogInView')
      },
      {
        /*用户注册页面*/
        path: '/userSignup',
        component:()=>import('../views/abc/abcd/UserSign-upView')
      },
      {
        /*国际采购页面*/
        path: '/purchasing',
        component:()=>import('../views/abc/abcd/PurchasingView')
      },
      {
        /*关于我们*/
        path: '/about',
        component:()=>import('../views/abc/abcd/AboutView')
      },
      {
        /*国际物流*/
        path: '/logistics',
        component:()=>import('../views/abc/abcd/LogisticsView')
      },
      {
        /*新闻与咨询*/
        path: '/news',
        component:()=>import('../views/abc/abcd/NewsView')
      },
      {
        /*国际供应页面*/
        path: '/supply',
        component:()=>import('../views/abc/abcd/SupplyView')
      }
    ]
  },
  {
    /*管理员登录页面*/
    path: '/admin',
    component: () => import('../views/abc/abcd/AdminLogInView')
  },
  {
    /*用户登录页面*/
    path: '/service',
    component: () => import('../views/abc/ad/service'),
    children: [
      {
        path: '/123',
        component:()=>import('../views/abc/ad/inquire')

      }
    ]

  },
  {
    /*测试页面*/
    path: '/test',
    component: () => import(/* webpackChunkName: "about" */ '../views/abc/abcd/TestView'),
    children:[
      {
        path: '/sys-admin/temp/admin/add-new',
        component: () => import('../views/sys-admin/temp/AdminAddNewView.vue')
      },
      {
        path: '/',
        component: () => import('../views/sys-admin/temp/TupianView.vue')
      },
      {
        path: '/sys-admin/temp/admin/list',
        component: () => import('../views/sys-admin/temp/AdminListView.vue')
      },

      {
        path: '/sys-/admin/temp/album/add-new',
        component: () => import(/* webpackChunkName: "about" */ '../views/sys-admin/temp/AlbumAddNewView.vue')
      },

      {
        path: '/sys-/admin/temp/album/list',
        component: () => import(/* webpackChunkName: "about" */ '../views/sys-admin/temp/AlbumListView.vue')
      },

      {
        path: '/sys-/admin/temp/brand/add-new',
        component: () => import(/* webpackChunkName: "about" */ '../views/sys-admin/temp/BrandAddNewView.vue')
      },
      {
        path: '/sys-/admin/temp/gategory/add-new',
        component: () => import(/* webpackChunkName: "about" */ '../views/sys-admin/temp/GategoryAddNewView.vue')
      },
      {
        path: '/sys-/admin/temp/property/add-new',
        component: () => import(/* webpackChunkName: "about" */ '../views/sys-admin/temp/PropertyAddNewView.vue')
      },
    ]

  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
